import { requester, config } from './requester'

export function setToken (token) {
  if (token) config.headers.Authorization = token
  else delete config.headers.Authorization
}

export async function lives (gameId) {
  return requester.get('/live?game_id=' + gameId, {})
}
